<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html style="height:100%" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="keywords" content="javascript framework, RIA, SPA, client SOA, linb, jsLinb, RAD, IDE, Web IDE, widgets, javascript OOP, opensource, open-source, Ajax, cross-browser, prototype, web2.0, platform-independent, language-independent" />
    <meta name="description" content="Web application created by Visual JS, powered by LINB framework" />
    <meta name="copyright" content="copyright@www.linb.net" />
    <meta http-equiv="imagetoolbar" content="no" />
    <title>Web application powered by LINB framework</title>
</head>
    <body style="height:100%;overflow:hidden;" scroll="no">
        <div id='loading'><img src="../NetDM4Web/runtime/loading.gif" alt="Loading..." /></div>
        <script type="text/javascript" src="../NetDM4Web/runtime/jsLinb/js/linb-all.js"></script>
        <script type="text/javascript">


Class('App', 'linb.Com',{
    Instance:{
        //base Class for this com
        base:["linb.UI"], 
        //requried class for this com
        required:["linb.UI.Button"], 
        finished: false,
        myself:null, 
        properties:{}, 
        events:{"onRender":"_onrender"}, 
        iniResource:function(com, threadid){
        }, 
        iniComponents:function(){
            // [[code created by jsLinb UI Builder
            var host=this, children=[], append=function(child){children.push(child.get(0))};
            
            append((new linb.UI.Button)
                .host(host,"button6")
                .setLeft(150)
                .setTop(150)
                .setCaption("button6")
                .onClick("_button6_onclick")
            );
            
            return children;
            // ]]code created by jsLinb UI Builder
        }, 
        iniExComs:function(com, hreadid){
        }, 
        CallRemote:function(datas,processfun,method){
            var option=null;
            if (method == null || method=="") {
                option = "{'method':'"+"get"+"'}";
            } else {
                option = method;
            }
            linb.request("/NetDM4Web/testform.do","datas="+datas,
            function(rep, type){
                processfun(rep);
            },
            function() {
                linb.UI.Dialog.alert('提示','网络连接出现问题，无法获得数据，请稍候重试');
            },0,_.unserialize(option));
        }, 
        process_ajax:function(rep) {
            myself.finished = true;
        }, 
        _button6_onclick:function (profile, e, src, value) {
            for (var i =0;i < 100;i++) {
                myself.finished = false;
                myself.CallRemote(_()+"__times="+i,myself.process_ajax,"{method:'get',asy:false}");
                while (!myself.finished) {
                }
            }
        }, 
        _onrender:function (com, threadid) {
            myself = this;
        }
    }
});

//linb.setAppLangKey('app');
linb.UI.setTheme('default');
linb.Com.load('App', function(){linb('loading').remove()}, 'cn');
        </script>
</body>
</html>